package code08_三大特征.练习;

public class Computer {
	private String name;
	private String brand;
	private String cpu;
	private String display;

	public Computer() {
		super();
	}

	public Computer(String name, String brand, String cpu, String display) {
		super();
		this.name = name;
		this.brand = brand;
		this.cpu = cpu;
		this.display = display;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getCpu() {
		return cpu;
	}

	public void setCpu(String cpu) {
		this.cpu = cpu;
	}

	public String getDisplay() {
		return display;
	}

	public void setDisplay(String display) {
		this.display = display;
	}
	
	public void show() {
		System.out.println("名称：" + getName());
		System.out.println("品牌：" + getBrand());
		System.out.println("处理器类型：" + getCpu());
		System.out.println("显示器：" + getDisplay());
	}

}
